<html xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro" lang="en" th:with="unixstamp=${#dates.createNow().time}">
<head th:replace="common::header"></head>
<style>
#carAllocate .layui-form-radio{
    margin-top:16px;
}
</style>
<body>
	<div class="layui-fluid">
		<div class="layui-row">
			<div class="layui-col-md12">
                <div class="layui-fluid">
                    <div class="layui-fluid">
                        <div class="layui-card">
                            <div class="layui-card-header mlk-title layui-bg-cyan">业务员管理</div>
                            <div class="layui-card-body">
                                <table lay-filter="emp" class="layui-table" id="emp"></table>
                            </div>
                        </div>
                    </div>
                </div>
			</div>
		</div>
	</div>


<!-- 修改业务员基本信息-->
<div id="eidtLayer" class="mlk-hide">
    <form class="layui-form layui-form-pane" lay-filter="eidtForm" id="eidtForm">
        <input type="hidden" name="id">
        <div class="layui-form-item">
            <label class="layui-form-label">姓名</label>
            <div class="layui-input-block">
                <input type="text" name="name" required  lay-verify="required" placeholder="请输入姓名" autocomplete="off" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">电话</label>
            <div class="layui-input-block">
                <input type="text" name="phone" required  lay-verify="required" placeholder="请输入电话" autocomplete="off" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">用户账号</label>
            <div class="layui-input-block">
                <input type="text" name="empCode" required  lay-verify="required" placeholder="请输入账号" autocomplete="off" class="layui-input">
            </div>
        </div>
    </form>
</div>

<!--type add-->
<div id="addLayer" class="mlk-hide">
    <form class="layui-form layui-form-pane" action="">
        <div class="layui-form-item">
            <label class="layui-form-label">姓名</label>
            <div class="layui-input-block">
                <input type="text" name="name" required  lay-verify="required" placeholder="请输入姓名" autocomplete="off" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">电话</label>
            <div class="layui-input-block">
                <input type="text" name="phone" required  lay-verify="required" placeholder="请输入电话" autocomplete="off" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">用户账号</label>
            <div class="layui-input-block">
                <input type="text" name="empCode" required  lay-verify="required" placeholder="请输入账号" autocomplete="off" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">用户密码</label>
            <div class="layui-input-block">
                <input type="text" name="password" required  lay-verify="required" placeholder="请输入密码" autocomplete="off" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <div class="layui-input-block">
                <button class="layui-btn" lay-submit lay-filter="submit" >立即提交</button>
                <button type="reset" class="layui-btn layui-btn-primary" id="reset">重置</button>
            </div>
        </div>
    </form>
</div>

<!--分配暂存区-->
<div id="allocateDepositLayer" class="mlk-hide">
    <form class="layui-form" action="" lay-filter="DepositForm">
        <div class="layui-form-item">
            <div class="layui-input-inline">
            </div>
        </div>
    </form>
</div>
<!--分配废品类型-->
<div id="allocateWasteType" class="mlk-hide">
    <table lay-filter="wasteTable" id="wasteTable"></table>
</div>

<!--分配片区-->
<div id="allocateArea" class="mlk-hide">
    <div class="layui-form">
        <div class="layui-form-item" id="area-picker">
            <div class="layui-input-inline" style="width: 200px;">
                <select name="province" class="province-selector"  lay-filter="province-1">
                    <option value="">请选择省</option>
                </select>
            </div>
            <div class="layui-input-inline" style="width: 200px;">
                <select name="city" class="city-selector"  lay-filter="city-1">
                    <option value="">请选择市</option>
                </select>
            </div>
            <div class="layui-input-inline" style="width: 200px;">
                <select name="county" class="county-selector"  lay-filter="county-1">
                    <option value="">请选择区</option>
                </select>
            </div>
            <div class="layui-input-inline" style="width: 80px;">
                <button class="layui-btn layui-btn-danger" id="areaButton">选择</button>
            </div>
        </div>
    </div>
    <hr>
    <div id="areaDiv"></div>
</div>


<!-- 员工车辆分配-->
<div id="carAllocate" class="mlk-hide">
    <table id="carTable" lay-filter="carTable"></table>
</div>
<!--add-->
<script type="text/html" id="toobar">
<div class="layui-btn-container">
<button class="layui-btn layui-btn-sm" lay-event="add">添加</button>
</div>
</script>
<script type="text/html" id="tool">
    <a class="layui-btn layui-btn-sm" lay-event="editInfo">基本信息修改</a>
    {{#  if(d.status == 0 ){ }}
    <a class="layui-btn layui-btn-sm" lay-event="up">激活</a>
    {{#  } }}
    {{#  if(d.status == 1 ){ }}
    <a class="layui-btn layui-btn-sm layui-btn-danger" lay-event="down">冻结</a>
    {{#  } }}
    <a class="layui-btn layui-btn-sm layui-btn-normal" lay-event="allocateDeposit">分配暂存区</a>
    <a class="layui-btn layui-btn-sm layui-btn-normal" lay-event="allocateWasteType">分配废品类型</a>
    <a class="layui-btn layui-btn-sm layui-btn-normal" lay-event="allocateArea">分配片区</a>
    <!--<a class="layui-btn layui-btn-sm layui-btn-normal" lay-event="allocateRemain">授权额度</a>-->
    <!-- 暂时不需要再分配车辆了  -->
    <!--<a class="layui-btn layui-btn-sm layui-btn-normal" lay-event="allocateCar">分配车辆</a>-->
</script>

</body>
	<div th:include="common::footer"></div>
	<script type="text/javascript" th:src="@{/js/engSystem/emp.js}"></script>
</html>